From: Ben Hutchings Date: Wed, 19 Jun 2013 03:35:28 +0000 (+0100) Subject: yama: Disable by default X-Git-Tag: archive/raspbian/4.9.80-2+rpi1~8^2~129 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=b644528bad2d5a44278cc282c9399a747f945f46;p=linux-4.9.git yama: Disable by default Gbp-Pq: Topic debian Gbp-Pq: Name yama-disable-by-default.patch --- diff --git a/security/yama/yama_lsm.c b/security/yama/yama_lsm.c index 0309f2111c70..d1bef16b7cb6 100644 --- a/security/yama/yama_lsm.c +++ b/security/yama/yama_lsm.c @@ -28,7 +28,7 @@ #define YAMA_SCOPE_CAPABILITY 2 #define YAMA_SCOPE_NO_ATTACH 3 -static int ptrace_scope = YAMA_SCOPE_RELATIONAL; +static int ptrace_scope = YAMA_SCOPE_DISABLED; /* describe a ptrace relationship for potential exception */ struct ptrace_relation { @@ -470,7 +470,7 @@ static inline void yama_init_sysctl(void) { } void __init yama_add_hooks(void) { - pr_info("Yama: becoming mindful.\n"); + pr_info("Yama: disabled by default; enable with sysctl kernel.yama.*\n"); security_add_hooks(yama_hooks, ARRAY_SIZE(yama_hooks)); yama_init_sysctl(); }